package com.zdy.im;

import com.zdy.im.conf.ImModuleEnum;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.ComponentScan;
import com.sixeco.framework.common.constants.GlobalConfigConstants;
import com.sixeco.framework.http.inters.IProjectModule;
import com.sixeco.framework.http.jetty.AbstractJettyAppServer;

@MapperScan(basePackages="com.zdy.im.*.mapper",sqlSessionFactoryRef = "sqlSessionFactory")
//@ComponentScan(basePackages={GlobalConfigConstants.COMPONENT_SCAN_BASE_PACKAGES})
@ComponentScan(basePackages={"com.zdy"})
public class ImHttpMain extends AbstractJettyAppServer {
    public static void main(String[] args) {
        jettyStart(ImHttpMain.class,args);
    }

    @Override
    protected IProjectModule getServiceName() {
        return ImModuleEnum.IM_HTTP;
    }
}
